package com.bcst.config;

import com.bcst.aspect.LogAspect;
import com.bcst.dao.xml.UserDaoImpl;
import com.bcst.service.xml.UserService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @description 欢迎关注公众号 编程识堂,每日更新技术相关文章，关注我不迷路
 * @author 小堂
 * @date 2023/8/31 0031 11:06
 * @description
 */
@Configuration
@EnableAspectJAutoProxy
public class BeanConfig {

   /* @Bean(value = "userDao")
    public UserDaoImpl userDao(){
        return new UserDaoImpl();
    }

    @Bean(value = "userService")
    public UserService userService(){
        UserService userService = new UserService();
        userService.setUserDao(userDao());
        return userService;
    }

    @Bean(value = "logAspect")
    public LogAspect logAspect(){
        return new LogAspect();
    }*/

}
